﻿-- =============================================
-- Author:      Sergey Solyanik
-- Create date: 7/25/09
-- Description: Updates a document version
-- =============================================
CREATE PROCEDURE [dbo].[UpdateVersion]
	@Contents VARBINARY (MAX),
	@VersionId INT
AS
    UPDATE dbo.DocumentVersion SET TimeStamp = GETUTCDATE(), Contents = @Contents WHERE Id = @VersionId
RETURN 0